V2EX  ›  英汉词典

Cuckoo Hashing

释义 Definition

Cuckoo hashing(布谷鸟哈希):一种哈希表(hash table)冲突解决方法,通常使用两个(或多个)哈希函数为每个键提供候选位置;当插入发生冲突时,会把占位的元素“踢走”(移到它的另一个候选位置),像连锁搬家一样,直到找到空位或触发重建(rehash)。常见优点是查找通常只需检查很少的位置(常见为 2 个)

发音 Pronunciation (IPA)

/ˈkʌkuː ˈhæʃɪŋ/

例句 Examples

We used cuckoo hashing to keep lookups fast.
我们使用布谷鸟哈希来保持查询速度很快。

When the table got too full, cuckoo hashing caused a chain of evictions, so the system rehashed into a larger table to avoid insertion failure.
当表变得过满时,布谷鸟哈希会引发一连串“踢出”操作,因此系统把数据重哈希到更大的表里,以避免插入失败。

词源 Etymology

“Cuckoo(布谷鸟)”因其把蛋产在别的鸟巢里而得名;在 cuckoo hashing 中,新插入的键会把原来占据位置的键“挤走”,让它去另一个“巢位”(由另一个哈希函数决定的候选位置),这种“占巢/搬巢”的过程形象地对应了算法的核心机制。

相关词 Related Words

文学与典型出处 Literary Works & Notable Sources

  • Rasmus Pagh & Flemming Friche Rodler:《Cuckoo Hashing》(2004,学术论文;该方法的经典提出与分析来源)
  • Encyclopedia of Algorithms》(算法百科类参考书;相关条目常讨论 cuckoo hashing 作为哈希冲突处理策略之一)
  • Handbook of Data Structures and Applications》(数据结构手册类著作;在哈希表与冲突处理章节中常提及或比较 cuckoo hashing)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1760 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 01:24 · PVG 09:24 · LAX 17:24 · JFK 20:24
♥ Do have faith in what you're doing.